import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

df=pd.read_csv('tips.csv')
print(df.head())
#data:画图用的数据
#x:横轴坐标
#y:纵轴坐标
#jitter:抖动程度
#hue:内部分类
#dodge:分裂
#palette:调色
sns.stripplot(x='sex',y='total_bill',data=df,jitter=True,hue='time',dodge=True,
              palette='Set1')
plt.show()